home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
xancur.z
/
xancur
/
man
/
catn
/
xancur.n
Wrap
Text File
|
1994-09-27
|
8KB
|
265 lines
XANCUR(1.4) Talisman User Commands Release 5
NAME
xancur - root cursor animation program for X
SYNOPSIS
xancur [-help] [-display _d_i_s_p_l_a_y] [-usleep _m_i_c_r_o_s_e_c_o_n_d_s] [-
fg _c_o_l_o_r] [-bg _c_o_l_o_r] [-rv] [-script _s_c_r_i_p_t_n_a_m_e] [-iter
_i_t_e_r_a_t_i_o_n_s] [_c_u_r_s_o_r_f_i_l_e _m_a_s_k_f_i_l_e]...
DESCRIPTION
The _x_a_n_c_u_r program allows the user to animate the background
("root") cursor on a workstation display running X. Nor-
mally, one experiments with _x_a_n_c_u_r until one finds a pleas-
ing, personalized look, then puts the _x_a_n_c_u_r command that
produces it into an X startup file. If no options are
specified, _x_a_n_c_u_r will attempt to read a scriptfile named
._x_a_n_c_u_r in the user's home directory for a list of
cursor/mask filenames. Failing that, xancur will look for a
system scriptfile defined at compilation --- see _F_I_L_E_S
below.
_x_a_n_c_u_r can also be used for program-to-user communication,
by using a meaningful batch animation through a finite
number of iterations to indicate, for example, the comple-
tion of a batch job. It can also run until the xancur pro-
cess is killed by a catch on the end of a task. The program
will not, however, pause another invocation of itself while
running, so improper use could be less than esthetic.
OPTIONS
The various options are as follows:
-help
Print a usage message and exit.
_c_u_r_s_o_r_f_i_l_e _m_a_s_k_f_i_l_e
Filename pairs in this form are used to set the root
cursor animation frame sequence. The enables the user
to specify the complete animation cycle with standard
cursor and mask bitmaps as used by _x_s_e_t_r_o_o_t(_1). Cursor
and mask files are bitmaps (little pictures), and can
be made with the _b_i_t_m_a_p(_1) program. One usually wants
the mask files to be all black until one becomes more
familiar with the way masks work.
-script _s_c_r_i_p_t_n_a_m_e
File _s_c_r_i_p_t_n_a_m_e contains commands (similar to those
used on the the command line) and either cursor/mask
filename pairs or merely the name of the cursor files
to which .mask will be added to create the maskfile
names.
-iter _i_t_e_r_a_t_i_o_n_s
This option sets the number of iterations for the
X Version 11 1
XANCUR(1.4) Talisman User Commands Release 5
complete animation loop. If left unset, the program
will loop until interrupted.
-fg _c_o_l_o_r
Use _c_o_l_o_r as the foreground color.
-bg _c_o_l_o_r
Use _c_o_l_o_r as the background color.
-rv This exchanges the foreground and background colors.
Normally the foreground color is black and the back-
ground color is white.
-display _d_i_s_p_l_a_y
Specifies the server to which to connect; see _X(_1).
For convenience, xancur interprets the ~ (tilde) character
in the same way as that seen in the _c_s_h(_1). This is also
true within scripts.
It is not currently known precisely how many frames long an
animation loop can be. User should probably be warned that,
like many other aspects of customization, many days can be
lost in exploring such limits.
EXAMPLE
To have _x_a_n_c_u_r cycle through the two cursor/masks pairs for
frames _b_m_1 and _b_m_2 one might run the following command.
xancur -usleep 400000 bm1 bm1.mask bm2 bm2.mask
More commonly, one might run the following in the _x_a_n_c_u_r
source directory.
xancur -script animations/fourpoints/Script
SCRIPTS
The scriptfiles may contain image/mask filename pairs, image
filenames with assumed .mask suffixes for mask filenames,
and command switches. The command switches comprise a sub-
set of the command line options, and include:
-script _s_c_r_i_p_t_n_a_m_e
-fg _c_o_l_o_r
-bg _c_o_l_o_r
-rv
It is important to note that the dash-commands do _n_o_t get
saved or re-executed, but rather merely affect a particular
X Version 11 2
XANCUR(1.4) Talisman User Commands Release 5
cursor construction. One should also note that the script
below will only work with the requisite X bitmaps resident
in the same directory as the script file.
A variation of the default pointer, showing color reversal:
-bg white
-fg black
fourpoints0
fourpoints15
fourpoints30
fourpoints45
fourpoints60
fourpoints75
-rv
fourpoints0
fourpoints15
fourpoints30
fourpoints45
fourpoints60
fourpoints75
It should be noted that any pathname within a script file
which is not a fully-rooted pathname will be resolved rela-
tive to the script file's location rather than relative to
the current working directory.
NOTES
Running xancur tends to prevent one's X server from being
swapped out as often. This has been known to significantly
improve response time on some machines.
FILES
/usr/lib/X11/xancur/Script default (system) script.
$HOME/.xancur default (personal) script.
$HOME/.xinitrc typical place for first xancur command.
SEE ALSO
csh(1), X(1), xinit(1), xset(1), xsetroot(1), xrdb(1),
XDefineCursor(3X11)
BUGS
This version probably can't handle individual files of over
64K in length.
The program makes no use of the X resources for anything.
COPYRIGHT
Copyright (c) 1993, Christopher Alexander North-Keys
X Version 11 3
XANCUR(1.4) Talisman User Commands Release 5
Author's credit must be retained in binaries, manual
entries, sources, and derived code.
This software may be freely copied, distributed, compiled,
altered, and sold, provided the above restrictions are
observed.
This software is provided "as is", with no warranty, guaran-
tee, support, maintenance, update schedule, claims to fit-
ness for any purpose, or anything else from any person or
corporate entity. See the source code for additional copy-
right and limitation information.
AUTHOR
Christopher Alexander North-Keys, Group Talisman
erlkonig@gnu.ai.mit.edu
Special thanks to Mark Lillibridge, MIT Project Athena, for
having written the code for _x_s_e_t_r_o_o_t(1), thanks to the
members of group Talisman (UT@Austin CCWF) for beta testing
this program and offering comments, and thanks to Mic
Kaczmarczik (UT@Austin CCWF) for proofreading this documen-
tation, checking the installation process, and checking the
spelling of his surname.
X Version 11 4